package qianting.news.apis.services.article.fallback;

import org.springframework.stereotype.Component;
import qianting.news.apis.models.article.dtos.ArticleCommentDto;
import qianting.news.apis.models.article.dtos.ArticleDto;
import qianting.news.apis.models.article.dtos.CommentConfigDto;
import qianting.news.apis.models.article.dtos.StatisticsDto;
import qianting.news.apis.services.article.IArticleClient;
import qianting.news.common.entity.State;

import java.util.Date;

@Component
public class IArticleClientFallback implements IArticleClient {
    @Override
    public State saveArticle(ArticleDto dto) {
        return State.fail("获取数据失败");
    }

    @Override
    public State queryLikesAndConllections(Long id, Date beginDate, Date endDate) {
        return State.fail("获取数据失败");
    }

    @Override
    public State newPage(StatisticsDto dto) {
        return State.fail("获取数据失败");
    }

    @Override
    public State findArticleConfigByArticleId(Long articleId) {
        return State.fail("获取数据失败");
    }

    @Override
    public State findNewsComments(ArticleCommentDto dto) {
        return State.fail("获取数据失败");
    }

    @Override
    public State updateCommentStatus(CommentConfigDto dto) {
        return State.fail("获取数据失败");
    }
}
